Re: [PATCHES] Updatable views - Mailing list pgsql-hackers

From Bernd Helmle
Subject Re: [PATCHES] Updatable views
Date
Msg-id B8C0BF3F20C4EC5B8C9771AB@[172.26.14.247]
Whole thread Raw
In response to Re: [PATCHES] Updatable views  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
--On Freitag, September 01, 2006 11:34:49 -0400 Alvaro Herrera 
<alvherre@commandprompt.com> wrote:

> I don't understand this part very well.  Say if you have a view WITH
> CHECK OPTION whose condition is "foo > 5", and then define a view WITH
> LOCAL CHECK OPTION on top of that, whose condition is "bar > 5".  Does
> the local check option on the second view that I can insert a row with
> foo=4, bar=6?  That doesn't violate the condition of bar > 5, so it
> seems fine to me.  But it also seems quite idiotic because it violated
> the original foo>5 condition.

That's exactly what i'm reading out there, too. If such a view definition 
is useful or not
depends on its use case. Correct me if i'm wrong....

--  Thanks
                   Bernd


pgsql-hackers by date:

Previous
From: "Jaime Casanova"
Date:
Subject: Re: [PATCHES] Updatable views
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Getting a move on for 8.2 beta